<template>
	<view>
		<js-error mode="bottom" ref="jsError"></js-error>
		<u-sticky class="u-sticky">
			<!-- bg-blue  -->
			<view class="padding-sm flex light " style="background-color: #eee;">
				<view style="width: 100%"><u-search placeholder="点击筛选" v-model="keyword" bg-color="#fff"
						:show-action="false" :disabled="true" @tap="show=true" searchIconSize="26" :showInput ="false"
						:inputStyle="inputStyle"></u-search></view>
				<!-- <u-icon @click="show=true" :name="filterIcon" size="60"
					class="margin-sm-left flex-sub margin-sm-right"></u-icon> -->

			</view>
		</u-sticky>
		<u-popup v-model="show" mode="right" length="90%">
			<!-- <view
				style="font-size: 18px;border-bottom: 1px solid #aaa;font-weight: bold;padding: 10px;display: flex;justify-content: space-between;">
				<text class=" padding-left-sm" style="color: #3E97B0;">筛选</text>
				<text @click="show=false">关闭</text>
			</view> -->
			<!-- class="form"  -->
			<u-form class="form" style="padding: 0 5px;" :model="query" ref="uForm" label-position="left">

				<view style="" class="text-border">
					<view class="text text-lg text-green">存货信息</view>
					<u-form-item  label="存货编码:" prop="invCode" label-width="220">
						<view class="flex">
							<!-- <u-input placeholder="请输入" v-model="query['child.invCode']" type="text" maxlength="200"></u-input> -->
							<u-search v-model="query.child.invCode" ref="uSearch" :focus="focus" placeholder="请先聚焦后扫描" :show-action="false" @search="confirm" bgColor="#fff"></u-search>
							<text class="cuIcon-scan text-xxl margin-right" @click="search" ></text>
						</view>
					</u-form-item>
					<u-form-item label="存货名称:" prop="invName" label-width="220">
						<u-input placeholder="请输入" v-model="query['child.invName']" type="text" maxlength="200"></u-input>
					</u-form-item>
					<u-form-item label="存货规格:" prop="invStd" label-width="220">
						<u-input placeholder="请输入" v-model="query['child.invStd']" type="text" maxlength="200"></u-input>
					</u-form-item>
					<u-form-item label="物资名称:" prop="cdefine23" label-width="220">
						<u-input placeholder="请输入" v-model="query['child.extend.cdefine23']" type="text" maxlength="200"></u-input>
					</u-form-item>
					<u-form-item label="物资规格:" prop="cdefine24" label-width="220">
						<u-input placeholder="请输入" v-model="query['child.extend.cdefine24']" type="text" maxlength="200"></u-input>
					</u-form-item>
				</view>
			
				<view style="" class="text-border">
					<view class="text text-lg text-green">常用信息</view>
					<u-form-item label="供应商:" prop="venName" label-width="220">
						<u-input placeholder="请输入" v-model="query.venName" type="text" maxlength="200"></u-input>
					</u-form-item>
					<u-form-item label="合同号:" prop="htno" label-width="220">
						<u-input placeholder="请输入" v-model="query['htno']" type="text" maxlength="200"></u-input>
					</u-form-item>
				</view>
				<view style="" class="text-border">
					<view class="text text-lg text-green">订单信息</view>
					<u-form-item label="订单号:" prop="cpoid" label-width="220">
						<u-input placeholder="请输入" v-model="query.cpoid" type="text" maxlength="200"></u-input>
					</u-form-item>
					<u-form-item  label="订单日期(起)" prop="time" label-width="220">
						<u-input placeholder="请选择" v-model="query.ddate_gte" type="select" :select-open="startTime"
							@click="startTime = true"></u-input>
					</u-form-item>
					<u-form-item  label="订单日期(止)" prop="time" label-width="220">
						<u-input placeholder="请选择" v-model="query.ddate_lte" type="select" :select-open="endTime"
							@click="endTime = true"></u-input>
					</u-form-item>	
					<u-form-item  label="部门:" prop="depName" label-width="220">
						<u-input placeholder="请输入" v-model="query.depName" type="text" maxlength="200"></u-input>
					</u-form-item>
				</view>
				<view class="cu-bar"></view>
				<u-picker mode="time" v-model="startTime" @confirm="startConfirm"></u-picker>
				<u-picker mode="time" v-model="endTime" @confirm="endConfirm"></u-picker>
			</u-form>
			<!-- <view class="footer">
	  		<u-button class="btn" type="primary" @click="submit">查询</u-button>
	  	</view> -->
			<view class=" flex cu-bar tabbar bg-white foot cu-modal-footer">
				<!-- round -->
				<button class="cu-btn  lines-red lg " @click="reset">重置</button>
				<button class="cu-btn  bg-confirm lg margin-left " @click="submit">查询</button>
			</view>
		</u-popup>
		<scroll-view scroll-y="true" @scrolltolower="loadMore" :refresher-enabled="true" :scrolltolower-enabled="true"
			:refresher-triggered="triggered" @refresherrefresh="refresherrefresh" @scrolltoupper="refresherrefresh"
			class="scroll-view-class" :style="{ height: computedScrollViewHeight }">
			<view class="scroll-content" ref="scrollContent" style="
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        " :style="{ height: computedScrollViewHeight  }">
				<view v-for="(item,index) in list" class="cu-item shadow " style="position: relative;" :key="item.id">
					<view class="cu-form-group" style="display: flex;justify-content: space-between;">
						<view
							style=" display: inline-block;padding: 5px;background: #3E97B0;color: #fff;min-width: 40px;text-align: center;font-style: italic;font-weight: bold">
							{{ index + 1 }}
						</view>
						<view style="font-size: 40rpx;" class="text-bold text-red">
							{{item.cpoid || ''}} 
						</view>
					</view>

					<view class="cu-form-group ">
						<view class="title">订单日期：</view>
						<view style="flex: 1;"> {{ item.ddate|| ""  }}（{{ item.createBy || "" }} ）</view>
					</view>
					<view class="cu-form-group">
						<view class="title">供应商：</view>
						<view style="flex: 1;"> {{ item.venName|| ""  }}
						</view>
					</view>
					
					<view class="cu-form-group">
						<view class="title">部门：</view>
						<view style="flex: 1;"> {{ item.depName || "" }} </view>
					</view>
					<view class="cu-form-group">
						<view class="title">仓库：</view>
						<view style="flex: 1;"> {{ item.whName || "" }} </view>
					</view>
					<view class="cu-form-group">
						<view class="title">合同号：</view>
						<view style="flex: 1;"> {{ item.htno || "" }} </view>
					</view>


					<view style="padding: 10px;background: #fff;">
						<view v-for="(items,indexs) in item.childList" :key="indexs"
							style="border: 1px solid #aaa;border-radius: 10px;overflow: hidden;position: relative;margin-bottom: 10px;">
							<view v-if="items.cstatus!='1'" style="position: absolute; right: 10px;bottom: 5px;">
								<!-- <u-icon name="edit-pen" @click="editDetail(items)"   size="70"></u-icon> v-if="items.canUpdateInvCode == '1' && flagBtn"-->
								<view style="margin-bottom: 20rpx;" >
									<button  :style="{ color: items.canUpdateInvCode != '1' && flagBtn ? 'initial' : '#3E97B0' }" class="cu-btn  shadow-blur" @tap="chEdit(items)">
										<u-icon name="edit-pen" style="margin-right: 5px;"></u-icon>
										存货
									</button>
								</view>
								<button v-if="flagBtn && items.syInQty > 0" class="cu-btn bg-green shadow-blur" @tap="rk(items)">
									<u-icon name="shopping-cart" style="margin-right: 5px;"></u-icon>
									入库
								</button>
							</view>

							<view style="position: absolute; right: 10px;top: 10px;">
								<view
									style=" display: inline-block;padding: 5px;border: 1px solid #3E97B0;border-radius: 5px; color: #3E97B0;min-width: 30px;text-align: center;">
									{{indexs + 1}}
								</view>
							</view>

							<view class="cu-form-group text-red">
								<view class="title">计划日期：</view>
								<view style="flex: 1;"> {{ items.planDate|| ""  }}</view>
							</view>
							<view class="cu-form-group text-red">
								<view class="title">存货编码：</view>
								<view style="flex: 1;"> {{ items.invCode|| ""  }}</view>
							</view>
							<view class="cu-form-group">
								<view class="title">存货名称：</view>
								<view style="flex: 1;"> {{ items.invName|| ""  }}
								</view>
							</view>
							<view class="cu-form-group">
								<view class="title">规格型号：</view>
								<view style="flex: 1;"> {{ items.invStd|| ""  }}</view>
							</view>
							<view class="cu-form-group">
								<view class="title">物资名称：</view>
								<view style="flex: 1;"> {{ items.extend && items.extend.cdefine23?items.extend.cdefine23:""  }}</view>
							</view>
							<view class="cu-form-group">
								<view class="title">物资规格：</view>
								<view style="flex: 1;"> {{ items.extend && items.extend.cdefine24?items.extend.cdefine24:""  }}</view>
							</view>
							
							<!-- <view class="cu-form-group">
								<view class="title">主计量：</view>
								<view style="flex: 1;"> {{ items.remarks|| "件"  }}</view>
							</view> -->
							<!-- <view class="cu-form-group">
								<view class="title">合同号：</view>
								<view style="flex: 1;"> {{ items.cDefine28|| ""  }}</view>
							</view> -->
							
							<view class="cu-form-group">
								<view class="title">剩余/总量：</view>
								<view style="flex: 1;">{{ items.syInQty || ""}} / {{ items.iqty || ""}}（{{items.unitName || "" }}）</view>
							</view>
							<!-- <view class="cu-form-group">
								<view class="title">剩余入库：</view>
								<view style="flex: 1;"> {{ items.syInQty || ""}}（{{items.unitName || "" }}）</view>
							</view> -->
							


						</view>
					</view>
				</view>

				<view v-if="list.length" class="loadmore" style="justify-self: flex-end">
					<u-loadmore :status="loadStatus"></u-loadmore>
				</view>
				<u-empty v-if="!list.length" style="height: 80vh;"></u-empty>
			</view>
		</scroll-view>
		<!-- v-if="flag" -->
		<view class="btn-group cu-bar foot">
			<button class="cu-btn bg-green shadow-blur" @tap="chcx()">
				<!-- <text class="cuIcon-add"></text> -->
				<u-icon name="search" style="margin-right: 5px;"></u-icon>
				存货查询
			</button>
		</view>
	</view>
</template>
<script>
	import { hasPermission } from '@/common/fire.js'
	import util from '@/common/fire.js'
	export default {
		data() {
			return {
				type: 'text',
				startTime: false, //控制日期显示
				endTime: false, //控制日期显示
				show: false,
				inputStyle:{
					  fontSize:'34rpx',
					},
				filterIcon: "/static/image/filter.png",
				background: {
					backgroundColor: '#3E97B0',
				},
				list: [ ],
				itemContent: {},
				query: {
					pageNo: 1,
					pageSize: 5,
					child: {
						
					}
					// orderBy: "a.create_date desc",
				},
				barCode: "",
				keyword:'',
				focus: false ,
				loadStatus: "loadmore",
				triggered: false,
				flagBtn: hasPermission('wms:pu:order:pomain:edit'),
				flag: true,
				scrollViewHeight: 0,
				headerHeight: 0,
				projStatus: this.$store.state.auth.projStatus,
			};
		},
		onShow() {
			this.query.pageNo = 1;
			this.loadData();
		},
		onLoad(e) {

		},
		mounted() {
			// this.$refs.xmInfo.$on('child-mounted-done', () => {
			//   this.calculateScrollViewHeight();
			// });
			this.calculateScrollViewHeight();
		},
		computed: {
			computedScrollViewHeight() {
				return this.scrollViewHeight === 'auto' ? 'auto' : `${this.scrollViewHeight}px`;
			},
		},
		methods: {
			makeSound(name){
				console.log("=====testClick=====");
				let src = '/static/'+name+'.mp3';
				//实例化声音  
				const Audio = uni.createInnerAudioContext();
				Audio.autoplay = true;
				Audio.src = src; //音频地址  
				Audio.play(); //执行播放  
				Audio.onError((res) => {
				});
				Audio.onPause(function() {
					console.log('end');
					Audio.destroy();
				});
			},
			confirm() {
				this.focus = false
				this.commonSearch(this.query.child.invCode)
			},
			search() {
				var _that = this;
				_that.focus = false
				// app 的时候
				if(this.vuex_config.deviceType === this.vuex_config.deviceTypeAPP){
					const wechat = uni.getSystemInfoSync()?.host?.env
					if (wechat === 'WeChat') {
					    uni.scanCode({
					    	scanType: ["barCode", "qrCode"],
					    	// onlyFromCamera: true,
					    	success: async (res) => {
					    		_that.barCode = res.result;
					    		await _that.commonSearch(res.result)
					    	},
					    });
					} else {
						var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
						console.log('mpaasScanModule',mpaasScanModule)
						
						mpaasScanModule.mpaasScan({
							// 扫码识别类型，参数可多选，qrCode、barCode，不设置，默认识别所有
							'scanType':  ['qrCode','barCode'],
							// 是否隐藏相册，默认false不隐藏
							'hideAlbum': false,
							//ios需要设置这个参数，只支持中英文 zh-Hans、en，默认中文                       
							'language' : 'en',
							//相册选择照片识别错误提示(ios)
							'failedMsg': '未识别到二维码，请重试',
							//Android支持全屏需要设置此参数
							'screenType': 'full'              
						},
						async (ret) => {
							console.log('ret',ret)
							if(ret.resp_message == 'success'){
								_that.barCode = ret.resp_result;
								await _that.commonSearch(ret.resp_result)
							}
						})
					}
				}else if(this.vuex_config.deviceType === this.vuex_config.deviceTypePDA){
					_that.focus = false
					setTimeout(()=>{
						_that.focus = true
					},500)
				}
			},
			async commonSearch(barCode) {
				let that = this
				//扫存货
				if (util.checkBarcode(barCode, this.vuex_config.InventoryPrefix)) {
					this.$u.api.mf.getBarInfo({
						barCode,
					}).then(res => {
						if(res.result == 'true'){
							if (!res.error) {
								if(res.data.basInv){
									console.log(res,'res')
									// this.query['child.invCode'] = res.data.basInv.invCode
									this.$set(this.query.child,'invCode',res.data.basInv.invCode)
									this.$forceUpdate()
									setTimeout(()=>{
										that.makeSound("cg");
									},500)
								}else{
									setTimeout(()=>{
										that.makeSound("sb");
									},500)
									that.$refs.jsError.showError('', '验证失败！', 'error');
								}
								
							} else {
								setTimeout(()=>{
									that.makeSound("sb");
									that.query.child.invCode = ''
								},500)
								that.$refs.jsError.showError('', res.error, 'error');
							}
						}else{
							setTimeout(()=>{
								that.makeSound("sb");
								that.query.child.invCode = ''
							},500)
							that.$refs.jsError.showError('', res.message, 'error');
						}
					})
				} else {
					setTimeout(()=>{
						that.makeSound("sb");
						that.query.child.invCode = ''
					},500)
					this.$refs.jsError.showError('', '请扫描正确的条码！', 'error');
				}
		
			
			},
			chcx(item) {
				uni.navigateTo({
					url: '/pages/mf/cgrk/chList',
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {
							console.log(data)
						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						//res.eventChannel.emit('initfilter', that.queryData)
					}
				})
			},
			rk(items) {
				this.$u.api.mf.checkTempInvCode({
					invCode:items.invCode
				}).then(res => {
					if(res.result == 'true'){
						this.$refs.jsError.showError('', '当前存货为‘待编码’，请修改存货后入库！', 'error');
					}else{
						uni.navigateTo({
							url: '/pages/mf/cgrk/edit?id=' + items.id,
							events: {
								// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
								Filter(data) {
									console.log(data)
								}
							},
							success: function(res) {
								// 通过eventChannel向被打开页面传送数据
								//res.eventChannel.emit('initfilter', that.queryData)
							}
						})
					}
					
				})
				
			},
			chEdit(items) {
				if(items.canUpdateInvCode != '1'){
					this.$u.toast('不允许修改')
					return;
				}
				uni.navigateTo({
					// url: '/components/treeList/list',
					url: '/pages/mf/cgrk/invForm?items=' + JSON.stringify(items),
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {
							console.log(data)
						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						//res.eventChannel.emit('initfilter', that.queryData)
					}
				})
			},
			carNoconfirm(v) {
				this.query.carNo = v;
				this.$forceUpdate()
			},
			showKeyboard(ref) {
				this.$refs[ref].toShow(this.query.carNo)
			},
			editDetail(model) {
				const that = this
				uni.navigateTo({
					url: '/pages/mf/fjwz/detailForm?id=' + model.id,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {

						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						// res.eventChannel.emit('initfilter', that.filter)
					}
				})
			},
			addDH(item) {
				const that = this
				let id = item.id ? item.id : ''
				uni.navigateTo({
					url: '/pages/mf/fjwz/form?id=' + id,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {

						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						// res.eventChannel.emit('initfilter', that.filter)
					}
				})
			},
			//跳转详情页面上传图片
			toFj(model) {
				const that = this
				uni.navigateTo({
					url: '/pages/mf/fjwz/upload?id=' + model.id,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {

						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						// res.eventChannel.emit('initfilter', that.filter)
					}
				})
			},
			toEdit(model) {
				const that = this;
				uni.showModal({
					title: '修改提示',
					content: '是否准备就绪？',
					confirmColor: '#00007f',
					success: (res) => {
						if (!res.confirm) {
							return false;
						} else {
							this.$u.api.mf.fjinvalid({
								id: model.id
							}).then(res => {
								if (res.result == 'true') {
									that.$u.toast("成功！");
									that.loadData();
								} else {
									that.$refs.jsError.showError('', res.message, 'error');
								}
							})
						}
					}
				})
			},
			toAdd(model) {
				const that = this
				uni.navigateTo({
					url: '/pages/mf/fjwz/detailForm?hid=' + model.id,
					events: {
						// 为指定事件添加一个监听器，获取被打开页面传送到当前页面的数据
						Filter(data) {

						}
					},
					success: function(res) {
						// 通过eventChannel向被打开页面传送数据
						// res.eventChannel.emit('initfilter', that.filter)
					}
				})
			},
			delData(id) {
				// this.query.id = id;
				uni.showModal({
					title: '删除提示',
					content: '是否删除此计划？',
					confirmColor: '#F54E40',
					success: (res) => {
						if (!res.confirm) {
							this.isdisabled = true
							return false;
						}
						this.$u.api.mf.fjdelete({
							id
						}).then(res => {
							if (res.result == "true") {
								this.$u.toast("删除成功！");
							} else {
								this.$refs.jsError.showError('', res.message, 'error');
							}
							// this.query.id = ''
							// this.list = [];
							this.query.pageNo = 1;
							this.loadData();
						})
					}
				})
			},
			delDetail(id) {
				// this.query.id = id;
				uni.showModal({
					title: '删除提示',
					content: '是否删除此详情？',
					confirmColor: '#F54E40',
					success: (res) => {
						if (!res.confirm) {
							this.isdisabled = true
							return false;
						}
						this.$u.api.mf.fjdelDetail({
							id
						}).then(res => {
							if (res.result == "true") {
								this.$u.toast("删除成功！");
							} else {
								// this.$u.toast(res.message);
								this.$refs.jsError.showError('', res.message, 'error');
							}
							this.query.pageNo = 1;
							this.loadData();
						})
					}
				})
			},
			// this.$forceUpdate();
			reset() {
				this.list = [];
				this.query = {
					pageNo: 1,
					pageSize: 5,
					child:{
						invCode:''
					}
				};
				this.loadData();
				this.show = false
			},
			submit() {
				this.list = [];
				this.query.pageNo = 1;
				this.loadData();
				this.show = false
			},
			startConfirm(e) {
				this.query.ddate_gte = e.year + '-' + e.month + '-' + e.day;
			},
			endConfirm(e) {
				this.query.ddate_lte = e.year + '-' + e.month + '-' + e.day;
			},
			customBack() {
				// 跳转到工作台页面
				uni.navigateBack({
					delta: 1,
				});
			},
			async calculateScrollViewHeight() {
				try {
					// 等待头部高度计算完成
					// await new Promise((resolve) => {
					//   this.$nextTick(() => {
					//     this.headerHeight = this.$refs.xmInfo.$refs['u-sticky'].height + this.$refs.xmInfo.$refs['u-sticky'].h5NavHeight + this.$refs.navbar.navbarHeight;
					//     resolve();
					//   });
					// });
					this.headerHeight = 52
					// 计算tabBar高度
					if (this.flag) {
						this.tabBarHeight = 60; // 假设tabbar高度为50px，实际应根据实际情况获取
					} else {
						this.tabBarHeight = 0;
					}
					// 获取屏幕高度
					const systemInfo = uni.getSystemInfoSync();
					const screenHeight = systemInfo.windowHeight;
					// 计算scroll-view高度
					this.scrollViewHeight = screenHeight - (this.headerHeight + this.tabBarHeight);
				} catch (error) {
					console.error('Error while calculating ScrollView height:', error);
				}
			},

			loadMore() {
				this.loadStatus = "loading";
				setTimeout(() => {
					this.query.pageNo += 1;
					this.loadData("add");
				}, 100);
			},
			loadData(type) {
				this.query.child&&this.query.child.invCode ? this.query['child.invCode'] = this.query.child.invCode : ''
				this.$u.api.mf.pomainListDataApp(this.query).then((res) => {
					if (res.list.length >= 0) {
						// this.xmList = res.list
						if (res.list.length < 20 || res.list.length == 0) {
							this.loadStatus = "nomore";
						}
						var data = res.list;
						if (type == "add") {
							for (var i = 0; i < data.length; i++) {
								this.list.push(data[i]);
							}
						} else {
							this.list = data;
						}
					}
				});
			},
			async refresherrefresh() {
				this.triggered = true;
				this.query.pageNo = 1;
				await this.loadData();
				const scrollTop = 0
				uni.pageScrollTo({
					scrollTop,
					duration: 0,
				});
				setTimeout(() => {
					this.triggered = false;
				}, 500);
			},
		},
		// beforeDestroy() {
		// 	// 清理事件监听器
		// 	try {
		// 		this.$refs.xmInfo.$off('child-mounted-done');
		// 	} catch (e) {
		// 		console.log('Error while unbinding event:', e);
		// 	}
		// }
	};
</script>
<style lang="scss" scoped>
	.text-border{
		border:2px solid  rgb(170, 170, 170); 
		border-radius: 5px;
		position: relative;
		padding-top: 20rpx;
		margin-top: 40rpx;
		padding-left: 20rpx;
		.text{
			position: absolute;
			background-color: #fff;
			padding: 10rpx 10rpx;
			top: -25rpx;
			right: 30rpx;
		}
	}
	.cu-bar {
		min-height: 60px;
	}

	.cu-btn {
		font-size: 16px;
		height: 40px;
	}

	.foot {
		background: #fff;
	}

	.cu-item {
		flex-wrap: wrap;
		padding: 8px 15px !important;
	}

	.title {
		width: 230rpx;
	}

	.cu-modal-slot {
		margin: 42rpx 32rpx 20rpx 32rpx;
		height: 100vh;
		position: relative;
	}

	.cu-modal-header {
		font-size: 38rpx;
		color: #3d3d3d;
		line-height: 40rpx;
		text-align: left;
		font-weight: 500;
	}

	.button {
		font-size: 32rpx;
		color: #666666;
		line-height: 40rpx;
		padding: 12rpx 40rpx;
		margin-bottom: 20rpx;
		background: #e2e2e2;
		border-radius: 180rpx;
	}

	.button:hover {
		background: #3e97b0;
		color: #ffffff;
	}

	.cu-modal-search-title {
		margin: 32rpx 0rpx 20rpx 0rpx;
		text-align: left;
		font-size: 32rpx;
		color: #999999;
		line-height: 40rpx;
	}

	.cu-dialog {
		background: #ffffff;
	}

	.cu-modal-footer {
		padding: 32rpx 32rpx;
		width: 100%;

		.cu-btn {
			width: 50%;
		}
	}

	.bg-confirm {
		background: #3e97b0;
		color: #ffffff;
	}
	.text-xxl{
		font-size: 60rpx !important;
	}
</style>